#ifndef __UPLOAD_H__
#define __UPLOAD_H__

#include "app_types.h"

#define ACCEPT_FB		0x20
#define IGNORE_FB		0x00

#define ERR_UNKNOWN			0x00
#define ERR_INVALID_PARAMS	0x01
#define ERR_PARAMS_COUNT	0x02
#define ERR_INVALID_FB		0x1F

#define UPLOAD_CMD_START_SPS_PROGRAMMING		0x01

void init_Upload();
void ctrl_upload(uint8_t ch, uint8_t *program);
void set_upload_start();
void set_upload_data(char b);
uint8_t parse_upload_data();

#endif // __UPLOAD_H__
